/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tree;

/**
 *
 * @author adam
 */
public class WriteFileTree extends WriteTree {
    
    public WriteFileTree(Position start, Position end, VyrazTree expression) {
        super(start, end,expression);
        
        
        
    }
    
    @Override
    public void generate(Context ctx){
        super.getExpression().generate(ctx);
        if(super.isLine()){
           ctx.println("writeln"); 
        }else{
            ctx.println("write");
        }
        
    }
}
